<feed xmlns='http://www.w3.org/2005/Atom'>
<title>Low-Battery-Yup/Low Battery Yup/ShortcutRecorder, branch master</title>
<subtitle>Dismiss Mac OS X's low battery warning dialog with the keyboard</subtitle>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/Low-Battery-Yup/'/>
<entry>
<title>Able to get a shortcut from the MASShortcutView</title>
<updated>2016-12-01T11:58:56+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2016-12-01T11:58:56+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/Low-Battery-Yup/commit/?id=a984e2dd951bcbfe5e3e6374213eb9a5fd5423cf'/>
<id>a984e2dd951bcbfe5e3e6374213eb9a5fd5423cf</id>
<content type='text'>
Fuck damn it finally freaking works! Damn, just had to take a 1.5 hour
nap after that.

We're finally able to extract a shortcut out of the MASShortcutView.

After trying a whole bunch of different things, I ultimately tried
opening the debugger and figured out that for whatever reason the
bindings weren't getting created and because of that my shortcut wasn't
getting saved in the user defaults.

Couldn't figure out how to get the binding to work even after includes
and whatnot.

Finally decided screw it I'm going to subclass the view and get the
shortcut and store it in `NSUserDefaults` myself. So that's what we're
going to do and this is the first step to getting that working.

Hoo boy.

Definitely need to vaccum the code after this.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fuck damn it finally freaking works! Damn, just had to take a 1.5 hour
nap after that.

We're finally able to extract a shortcut out of the MASShortcutView.

After trying a whole bunch of different things, I ultimately tried
opening the debugger and figured out that for whatever reason the
bindings weren't getting created and because of that my shortcut wasn't
getting saved in the user defaults.

Couldn't figure out how to get the binding to work even after includes
and whatnot.

Finally decided screw it I'm going to subclass the view and get the
shortcut and store it in `NSUserDefaults` myself. So that's what we're
going to do and this is the first step to getting that working.

Hoo boy.

Definitely need to vaccum the code after this.
</pre>
</div>
</content>
</entry>
</feed>
